package com.company;

public class L_returnMin {
    public int returnMin(int m, int n) {
        return Math.min(m,n); //m和n是形参
    }
    public int add(int x)
    {
        x+=30;
        System.out.println("形参 x 的值："+x);
        return x;
    }
    public static void main(String[] args) {
        int x = 50;
        int y = 100;
        L_returnMin t = new L_returnMin();
        int i = t.returnMin(x,y); //x和y是实参
        System.out.println(i);


        int ii = t.add(x);
        System.out.println("实参 x 的值："+x);
        System.out.println("调用 add() 方法的返回值："+ii);
    }
}
